import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('@/pages/index.vue'),
      meta: {
        title: '信息采集平台'
      }
    }, {
      path: '/login',
      name: 'login',
      component: () => import('@/pages/login.vue'),
      meta: {
        title: '信息采集平台-登录'
      }
    }, {
      path: '/moreInfo',
      name: 'moreInfo',
      component: () => import('@/pages/moreInfo.vue'),
      meta: {
        title: '评分公告'
      }
    }, {
      path: '/inspectionForm',
      name: 'inspectionForm',
      component: () => import('@/pages/inspectionForm.vue'),
      meta: {
        title: '考核表单'
      }
    }, {
      path: '/recommend',
      name: 'recommend',
      component: () => import('@/pages/recommend.vue'),
      meta: {
        title: '民主推荐采集'
      }
    }, {
      path: '/family',
      name: 'family',
      component: () => import('@/pages/family.vue'),
      meta: {
        title: '家庭成员信息采集'
      }
    }]
});
